/**
 *
 * 盲板抽堵作业票
 * type: span/ span标签； input: el-input； select: el-select
 *
 */

export const bindPlateSafeFormItems = () => {
  return [
    {
      label: "申请部门",
      prop: "specialApplicationDept",
      type: "span",
      options: [
        /* 相同的选择项列表 */
      ],
    },
    {
      label: "申请人",
      prop: "createByName",
      type: "span",
      options: [
        /* 相同的选择项列表 */
      ],
    },
    //no
    {
      label: "作业类别",
      prop: "specialWorkInfo",
      type: "commonSelect",
      options: [
        {
          label: "堵盲板",
          value: "1",
        },
        {
          label: "抽盲板",
          value: "2",
        },
      ],
      rules: [{ required: true, errorMessage: "请选择作业类别", trigger: "change" }],
    },
    {
      label: "实际作业时间",
      prop: "putTime",
      type: "daterange",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择计划作业时间", trigger: "change" },
      ],
    },

    {
      label: "设备/管道名称",
      prop: "deviceName",
      type: "input",
      options: [],
      rules: [
        { required: true, errorMessage: "请输入设备,管道名称", trigger: "blur" },
      ],
    },
    {
      label: "管道介质",
      prop: "temperature",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入管道介质", trigger: "blur" }],
    },
    {
      label: "管道温度",
      prop: "medium",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入管道温度", trigger: "blur" }],
    },
    {
      label: "管道压力",
      prop: "pressure",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入管道压力", trigger: "blur" }],
    },
    {
      label: "盲板材质",
      prop: "texture",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入盲板材质", trigger: "blur" }],
    },
    {
      label: "盲板规格",
      prop: "specification",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入盲板规格", trigger: "blur" }],
    },

    {
      label: "作业负责人",
      prop: "head",
      type: "select",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择作业负责人", trigger: "change" },
      ],
    },
    {
      label: "盲板编号",
      prop: "workInfo",
      type: "input",
      options: [],
      // rules: [{ required: true, errorMessage: "请输入盲板编号", trigger: "blur" }],
    },
    {
      label: "监护人",
      prop: "guardian",
      type: "select",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择作业监护人", trigger: "change" },
      ],
    },
    {
      label: "作业人",
      prop: "workPerson",
      multiple: true,
      type: "select",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择作业作业人", trigger: "change" },
      ],
    },

    {
      label: "具体位置选择",
      prop: "specialLocation",
      type: "map",
      options: [],
      // rules: [{ required: true, errorMessage: "请选择动火地点及部位", trigger: "blur" }],
    },
    {
      label: "作业示意图",
      prop: "",
      type: "upload",
      multiple: true,
      options: [],
      rules: [
        // { required: true, errorMessage: "请选择作业示意图", trigger: "change" },
      ],
    },
    {
      label: "上传人签字",
      prop: "",
      type: "sign",
      options: [],
      rules: [
        { required: true, errorMessage: "请签字", trigger: "blur" },
      ],
    },
  

    {
      label: "关联其他特殊作业",
      prop: "associateOthers",
      checkBoxArr: [],
      type: "checkbox",
      options: [
        { value: "临时用电", text: "临时用电" },
        { value: "高处作业", text: "高处作业" },
        { value: "动火作业", text: "动火作业" },
        { value: "动土", text: "动土" },
        { value: "盲板抽堵", text: "盲板抽堵" },
        { value: "断路", text: "断路" },
        { value: "吊装", text: "吊装" },
        { value: "交叉作业", text: "交叉作业" },
      ],
      rules: [
        {
          required: true,
          errorMessage: "请选择关联其他特殊作业",
          trigger: "change",
        },
      ],
    },

    {
      label: "风险辨识",
      prop: "riskIdentification",
      checkBoxArr: [],
      type: "checkbox",
      options: [
        { value: "中毒窒息", text: "中毒窒息" },
        { value: "火灾", text: "火灾" },
        { value: "爆炸", text: "爆炸" },
        { value: "灼烫", text: "灼烫" },
        { value: "物体打击", text: "物体打击" },
        { value: "机械伤害", text: "机械伤害" },
        { value: "高处坠落", text: "高处坠落" },
        { value: "触电", text: "触电" },
        { value: "起重伤害", text: "起重伤害" },
        { value: "其他", text: "其他" },
      ],
      rules: [{ required: true, errorMessage: "请选择风险辨识", trigger: "change" }],
    },

    {
      label: "作业票号",
      prop: "jobNumber",
      checkBoxArr: [],
      type: "input",
      options: [],
      disabled: true,
    },
  ];
};
